$(function(){
	initDataGrid();
});

//动态加载datagrid
function initDataGrid(){
	var _datagrid=$('#datagrid');
	_datagrid.datagrid({
		url:rootPath +'/user/list',
		striped:true,
		singleSelect:true,
		height:320,
		columns:[[
			{field:'userID',title:'用户ID',width:143},
			{field:'userAccount',title:'登陆名称',width:200},
			{field:'userPassword',title:'登陆密码',width:200},
			{field:'userName',title:'用户姓名',width:200},
			{field:'userEmail',title:'用户邮箱',width:240}
		]],
		pagination:true
	});
}